package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author 张永远
 * @since 2020-06-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_order_input_package")
public class OrderInputPackageDo extends Model<OrderInputPackageDo> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 入库单id
     */
    @TableField("order_input_id")
    private Long orderInputId;

    /**
     * 箱类号
     */
    @TableField("box_type_number")
    private String boxTypeNumber;

    /**
     * 包裹长度
     */
    @TableField("package_lenght")
    private float packageLenght;

    /**
     * 包裹宽度
     */
    @TableField("package_width")
    private float packageWidth;

    /**
     * 包裹高度
     */
    @TableField("package_height")
    private float packageHeight;

    /**
     * 包裹重量
     */
    @TableField("package_weight")
    private float packageWeight;

    /**
     * 包裹数量
     */
    @TableField("package_count")
    private Integer packageCount;

    @TableField("delete_flag")
    @TableLogic
    private Integer deleteFlag;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
